]> dgit.raspbian.org Git - gnome-shell.git/commit
ScreenShield: tie the suspend inhibitor to our isActive property
authorRui Matos <tiagomatos@gmail.com>
Wed, 13 May 2015 19:41:07 +0000 (21:41 +0200)
committerRui Matos <tiagomatos@gmail.com>
Thu, 14 May 2015 13:11:18 +0000 (15:11 +0200)
commitbbc8010de3315e767cad0158abfecf1c40b8ffc5
treef0c6df96ec206ef1b86050657ea6c4ede4e436b0
parent15baa56584b6ac0477b438d13fa532e74a85df9a
ScreenShield: tie the suspend inhibitor to our isActive property

The whole point of holding a suspend inhibitor is to be able to lock
before suspending.

Currently, when resuming we immediately take the inhibitor without
checking that we're locked which means that we won't be able to
release this inhibitor if we don't unlock at least once.

To prevent that and to better match the inhibitor's intention in the
first place, we can tie the inhibitor with not being locked. In
practice, we also want to let the locking animation finish before
suspending, so we'll tie the inhibitor with not being active
instead.

https://bugzilla.gnome.org/show_bug.cgi?id=749228
js/ui/screenShield.js